<include file="default/public/header_common" />

<div class="top-box-store">
  <div class="top-layout"></div>
  <div class="am-g top-store">
    <div class="am-u-sm-4 am-text-center"><img src="/{$shop['shopImg']}" class="am-circle pic-autor" width="65" height="65" /></div>
    <div class="am-u-sm-8 pl-0"> <span class="f-18">{$shop['shopName']}</span> <!--<img src="__ROOT__/Apps/Wap/View/default/assets/i/i-1.png" width="20" height="20" />-->
      <div class="mt-1 am-cf"><span class="am-fr"><if condition="$shop['isFollow']"><a href="javascript:;" class="am-btn am-radius am-btn-xs btn-line">已关注</a><else /><a href="javascript:followShop({$shop['shopId']});" class="am-btn am-radius am-btn-xs btn-line">关注</a></if> </span> 店铺编号：{$shop['shopSn']}</div>
    </div>
  </div>
</div>
<div id="mx-tabs" class="am-tabs am-tabs-d2 mg-0 baobei-tab">
  <ul class="am-tabs-nav am-cf">
    <li class=""><a href="{:U('Wap/shopsIndex/newGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['newSum']}</span><br>新品宝贝</a></li>
    <li class=""><a href="{:U('Wap/shopsIndex/saleGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['saleSum']}</span><br>在售宝贝</a></li>
    <li class="am-active"><a href="{:U('Wap/shopsIndex/soldGoodsList/shopId/' . $shopId)}"><span class="c-red">{$shop['soldSum']}</span><br>已售欣赏</a></li>
  </ul>
  <div class="am-tabs-bd">
    <div data-tab-panel-0 class="am-tab-panel am-active">
      <ul class="am-gallery am-avg-sm-2 am-avg-md-3 am-avg-lg-4 am-gallery-default" data-am-gallery="{ pureview: true }" >
        <volist name="goods['goods']" id="vo">
          <li>
            <div class="am-gallery-item"> <a href="{:U('Wap/Index/goodsDetail/id/' . $vo['goodsId'])}" class=""> <div class="picauto"><img src="/{$vo['goodsThumbs']}"/></div>
              <h3 class="am-gallery-title">{$vo['goodsName']}</h3>
              <div class="am-gallery-desc"><span class="c-red">¥{$vo['shopPrice']}</span></div>
              </a> </div>
          </li>
        </volist>
      </ul>
    </div>
  </div>
  <div style="clear:both;"></div>
  <ul data-am-widget="pagination" class="am-pagination am-pagination-select">
      <if condition="$goods['current'] != 1">
        <li class="am-pagination-prev "> <a href="{:U('Wap/shopsIndex/soldGoodsList/shopId/' . $goods['shopId'] . '/page/' . ($goods['current']-1))}">上一页</a> </li>
      </if>
      <li class="am-pagination-select">
        <select>
          <option class="">{$goods['current']} / {$goods['sumpage']} </option>
        </select>
      </li>
      <if condition="$goods['current'] != $goods['sumpage']">
        <li class="am-pagination-next "> <a href="{:U('Wap/shopsIndex/soldGoodsList/shopId/' . $goods['shopId'] . '/page/' . ($goods['current']+1))}">下一页</a> </li>
      </if>
    </ul>
</div>
<!--<div data-am-widget="navbar" class="am-navbar am-cf navbar-bottom"
     id="">
  <ul class="am-navbar-nav am-cf am-avg-sm-4">
    <li > <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-baobei.png"/> <span class="am-navbar-label c-333">宝贝分类</span> </a> </li>
    <li > <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-shop.png"/> <span class="am-navbar-label c-333">店铺介绍</span> </a> </li>
    <li> <a href="#" class=""> <img src="__ROOT__/Apps/Wap/View/default/assets/i/i-link.png"/> <span class="am-navbar-label c-333">联系商家</span> </a> </li>
  </ul>
</div>--> 
<script src="__ROOT__/Apps/Wap/View/default/assets/js/jquery.min.js"></script> 
<script src="__ROOT__/Apps/Wap/View/default/assets/js/amazeui.min.js"></script><script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
function followShop(id) {
	$.post("{:U('Wap/Users/followShop')}",{shopId:id},function(data,textStatus){
		var json = MXC.toJson(data);
		if(json.code == 1) {
			alert('关注成功！');
			location.reload();
		} else if(json.code == '100001') { 
			alert(json.info);
			window.location = "{:U('Wap/Users/login')}";
		} else {
			alert(json.info);
		}
	});
}
</script>
</body>
</html>